package com.dragon.flow.enm.message;

import java.io.Serializable;

/**
 * @title: 站内消息类型枚举
 * @author: bruce.liu
 * @since: 2024/12/3 16:52
 */
public enum OnSiteMessagesTypeEnum implements Serializable {

    COPY("copy", "抄送"), TRANSFER("transfer", "转阅");

    private String type;
    private String name;

    public static String getName(String status) {
        if (null == status) {
            return null;
        }
        for (OnSiteMessagesTypeEnum item : values()) {
            if (status.equals(item.getType())) {
                return item.getName();
            }
        }
        return null;
    }

    OnSiteMessagesTypeEnum(String type, String name) {
        this.type = type;
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public String getName() {
        return name;
    }
}
